#pragma once

#include <string>
#include <vector>
#include <iostream>

#include "time.h"
#include "Client.h"
#include "DVD.h"
#include "Member.h"

using namespace std;

class Rental
{
private:
	Client* _client;
	DVD* _dvd;
	struct tm _startDate;
	struct tm _endDate;
	int _lateFees;

public:
	Rental(Client* member_);
	Client* getClient();
	DVD* getDVD();
	struct tm getStartDate();
	struct tm getEndDate();
	struct tm getDeliveredDate();
	void setStartDate(struct tm startDate);
	void setEndDate(struct tm endDate);
	int getLateFees();
	int calcLateFees(struct tm deliveredDate_);
	void rent(DVD dvd_);
	void endRent(DVD dvd_);
};
